import SysDataApi from "../api/webPath/sysDataApi";

export async function useSysDataPidList(type: string, pid:string) {
    const enumList = ref([]);

    console.log("use sys data pid list ", pid)
    const res = await SysDataApi.getPageData({ type, pid })
    if(res){
        const {data} = res
        console.log("dic data", data);
        enumList.value = data?.map((x: any) => ({ value: x.name, label: x.name }));
    }

  return enumList;
}
